package com.sie.plm.rpm.standar.vo;

public class KeyValue {
    private String key;

    public void setKey(String key) {
        this.key = key;
    }

    private String value;

    public void setValue(String value) {
        this.value = value;
    }

    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof KeyValue)) return false;
        KeyValue other = (KeyValue) o;
        if (!other.canEqual(this)) return false;
        Object this$key = getKey(), other$key = other.getKey();
        if ((this$key == null) ? (other$key != null) : !this$key.equals(other$key)) return false;
        Object this$value = getValue(), other$value = other.getValue();
        return !((this$value == null) ? (other$value != null) : !this$value.equals(other$value));
    }

    protected boolean canEqual(Object other) {
        return other instanceof KeyValue;
    }

    public int hashCode() {
        int PRIME = 59,result = 1;
        Object $key = getKey();
        result = result * 59 + (($key == null) ? 43 : $key.hashCode());
        Object $value = getValue();
        return result * 59 + (($value == null) ? 43 : $value.hashCode());
    }

    public String toString() {
        return "KeyValue(key=" + getKey() + ", value=" + getValue() + ")";
    }


    public String getKey() {
        return this.key;
    }


    public String getValue() {
        return this.value;
    }
}
